﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AircraftBattleServer
{
    public class ServerUtility
    {
        static public double DegreeToRadiun(double degree)
        {
            return degree * Math.PI / 180;
        }

        static public double Distance(MyPoint p1, MyPoint p2)
        {
            return Math.Sqrt(
                (p1.x - p2.x) * (p1.x - p2.x) + 
                (p1.y - p2.y) * (p1.y - p2.y));
        }
    }
}
